import axios from "./axios";
export const getApi = () => {
    return axios.post("/gaode/v3/ip?ip=114.247.50.2&output=xml&key=9d58bd793f47755093078b5a37d9de03");
}
export const getCitylist = () => {
    return axios({
        url: "http://localhost:12345/api/city/list",
        method: "get"
    })
}
export const getcity = () => {
    return axios({
        url: "http://localhost:12345/api/city/hot",
        method: "get"
    })
}
export const postCitylist = (keywords: string) => {
    return axios({
        url: "http://localhost:12345/api/city/search/" + keywords,
        method: "get"
    })
}   
export const getTrain = () => {
    return axios({
        url: "http://localhost:12345/api/ticket/list",
        method: "get"
    })
}